<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Type link_mode_type</title>
<link rel="stylesheet" href="../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../../index.html" title="The Boost C++ Libraries BoostBook Documentation Subset">
<link rel="up" href="../../intrusive/reference.html#header.boost.intrusive.link_mode_hpp" title="Header &lt;boost/intrusive/link_mode.hpp&gt;">
<link rel="prev" href="linear_slist_algorithms.html" title="Class template linear_slist_algorithms">
<link rel="next" href="list.html" title="Class template list">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../boost.png"></td>
<td align="center"><a href="../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="linear_slist_algorithms.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../intrusive/reference.html#header.boost.intrusive.link_mode_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="list.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="refentry">
<a name="boost.intrusive.link_mode_type"></a><div class="titlepage"></div>
<div class="refnamediv">
<h2><span class="refentrytitle">Type link_mode_type</span></h2>
<p>boost::intrusive::link_mode_type</p>
</div>
<h2 xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv-title">Synopsis</h2>
<div xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" class="refsynopsisdiv"><pre class="synopsis"><span class="comment">// In header: &lt;<a class="link" href="../../intrusive/reference.html#header.boost.intrusive.link_mode_hpp" title="Header &lt;boost/intrusive/link_mode.hpp&gt;">boost/intrusive/link_mode.hpp</a>&gt;

</span>
<span class="keyword">enum</span> <span class="identifier">link_mode_type</span> <span class="special">{</span> <a class="link" href="link_mode_type.html#boost.intrusive.link_mode_type.normal_link">normal_link</a>, <a class="link" href="link_mode_type.html#boost.intrusive.link_mode_type.safe_link">safe_link</a>, <a class="link" href="link_mode_type.html#boost.intrusive.link_mode_type.auto_unlink">auto_unlink</a> <span class="special">}</span><span class="special">;</span></pre></div>
<div class="refsect1">
<a name="id-1.3.20.42.17.3.4"></a><h2>Description</h2>
<p>This enumeration defines the type of <a class="link" href="value_traits.html" title="Struct template value_traits">value_traits</a> that can be defined for Boost.Intrusive containers </p>
<div class="variablelist"><dl class="variablelist compact">
<dt><span class="term"><code class="computeroutput">normal_link</code><a name="boost.intrusive.link_mode_type.normal_link"></a></span></dt>
<dd><p>If this linking policy is specified in a <a class="link" href="value_traits.html" title="Struct template value_traits">value_traits</a> class as the <a class="link" href="link_mode.html" title="Struct template link_mode">link_mode</a>, containers configured with such <a class="link" href="value_traits.html" title="Struct template value_traits">value_traits</a> won't set the hooks of the erased values to a default state. Containers also won't check that the hooks of the new values are default initialized. </p></dd>
<dt><span class="term"><code class="computeroutput">safe_link</code><a name="boost.intrusive.link_mode_type.safe_link"></a></span></dt>
<dd><p>If this linking policy is specified in a <a class="link" href="value_traits.html" title="Struct template value_traits">value_traits</a> class as the <a class="link" href="link_mode.html" title="Struct template link_mode">link_mode</a>, containers configured with such <a class="link" href="value_traits.html" title="Struct template value_traits">value_traits</a> will set the hooks of the erased values to a default state. Containers also will check that the hooks of the new values are default initialized. </p></dd>
<dt><span class="term"><code class="computeroutput">auto_unlink</code><a name="boost.intrusive.link_mode_type.auto_unlink"></a></span></dt>
<dd><p>Same as "safe_link" but the user type is an auto-unlink type, so the containers with constant-time size features won't be compatible with <a class="link" href="value_traits.html" title="Struct template value_traits">value_traits</a> configured with this policy. Containers also know that the a value can be silently erased from the container without using any function provided by the containers. </p></dd>
</dl></div>
</div>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2005 Olaf Krzikalla<br>Copyright © 2006-2015 Ion Gaztanaga<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="linear_slist_algorithms.html"><img src="../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../../intrusive/reference.html#header.boost.intrusive.link_mode_hpp"><img src="../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../index.html"><img src="../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="list.html"><img src="../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
